import { Controller, Get, Body, Query, Params } from '@/common/routerDecorator'
import { Context } from 'koa'
import UserService from '../service/user.service'

@Controller('/user')
export class UserInfoController {
  constructor(private userservice: UserService) {}
  @Get('/:id')
  async addUser(ctx: Context, @Body() body, @Query() query, @Params() params) {
    this.userservice.test()
    console.log('body',body)
    console.log('query',query)
    console.log('params',params)
    ctx.body = ctx.success('123')
  }
}
